﻿using BlawkayEngine;
using BlawkayEngine.ScreenSystem;
using Microsoft.Xna.Framework;

namespace BlawkayHockey
{
    public class XboxLiveMenuScreen : HomeMenuScreen
    {

        public XboxLiveMenuScreen(Game oGame)
            : base(oGame, "Xbox Live")
        {
            for (MenuOptions oOption = MenuOptions.Quick_Search; oOption <= MenuOptions.Back; oOption++)
            {
                AddMenuOption(oOption.ToString());
            }

        }

        protected override void Select(ScreenManager oManager)
        {
            switch ((MenuOptions)Index)
            {
                case MenuOptions.Quick_Search:
                    GoToDestination(HomeDestination.QuickSearch, oManager);
                    break;
                case MenuOptions.Custom_Search:
                    GoToDestination(HomeDestination.Main, oManager);
                    break;
                case MenuOptions.Create_Match:
                    GoToDestination(HomeDestination.CreateMatch, oManager);
                    break;
                case MenuOptions.Back:
                    GoToDestination(HomeDestination.Main, oManager);
                    break;
                default:
                    GoToDestination(HomeDestination.Main, oManager);
                    break;
            }
        }

        protected override void Cancel(ScreenManager oManager)
        {
        }

        private enum MenuOptions
        {
            Quick_Search,
            Custom_Search,
            Create_Match,
            Back
        }

    }
}
